﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace webapi.Model
{
    [Table("xyc_order_all")]
    public class OrderAllModel
    {
        [Key]
        public String GUID { get; set; }

        [Required]
        public String ORDER_INFO_GUID { get; set; }

        [Required]
        public String ORDER_ID { get; set; }

        [Required]
        public String ORDER_NUM { get; set; }

        [Required]
        public DateTime CREATE_DATETIME { get; set; }

        public DateTime? DELETE_DATE { get; set; }

        [Required]
        public String ORDER_STATUS_CODE { get; set; }

        public String? RECOVER_STATUS_CODE { get; set; }

        public String? RECOVER_STATUS_DESC { get; set; }

        [Required]
        public String USER_GUID { get; set; }

        [Required]
        public int PRODUCT_ID { get; set; }

        //[Required]
        //public String PRODUCT_INFO_GUID { get; set; }

        [Required]
        public String ORDER_STATUS_DESC { get; set; }
    }
}
